#!/usr/bin/env python
# 项目根目录的入口点脚本
from pdf2docx.myTest.test import convert_pdf_to_docx
import os

if __name__ == "__main__":
    # 获取测试文件所在的目录
    test_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "pdf2docx", "myTest")
    
    # 定义输入的PDF文件和输出的DOCX文件路径
    pdf_filename = "Saas行业研究报告_5-6.pdf"
    pdf_path = os.path.join(test_dir, pdf_filename)
    docx_path = pdf_path.replace(".pdf", ".docx")
    
    # 执行转换
    convert_pdf_to_docx(pdf_path, docx_path) 